using UnityEngine;

public class GUIScrollViewNode : GUITreeNode
{
    private Vector2 scrollViewVector = Vector2.zero;
    
    protected override void DrawGUIComponents(GUINode[] components)
    {
        scrollViewVector = GUI.BeginScrollView(new Rect(transform.position.x, transform.position.y, Screen.width, Screen.height), scrollViewVector, new Rect(PositionX, PositionY, Width, Height));

        base.DrawGUIComponents(components);

        GUI.EndScrollView();
    }
}